package com.itmg.util;

/**
 * 常量属性 * @author 秦小强
 */
public class Constants {

	// 该类不能被实例化
	private Constants() {
		throw new IllegalAccessError();
	}
	//排序
	public static final String SORT_RELATIVE="0";          //按相关度排序
	public static final String SORT_PRICE_DOWN_TO_UP="1";  //价格从低到高
	public static final String SORT_PRICE_UP_TO_DOWN="2";  //价格从高到低
	public static final String SORT_KEYWORDS_HEAT="3";     //按关键字的热度排序

	
	public static final String SORT_UPDATE_TIME_NEW_TO_OLD="4"; //更新时间从老到新

	public static final String SORT_UPDATE_TIME_OLD_TO_NEW="5";  //更新时间从新到老

	
	public static final String SORT_PV_RANK_DOWN_TO_UP="6"; //人气从低到高
	public static final String SORT_PV_RANK_UP_TO_DOWN="7";  //人气从高到低
	
	public static final String SORT_AFFLIATE_RATE_DOWN_TO_UP="8"; //报酬型广告费用率从低到高
	public static final String SORT_AFFLIATE_RATE_UP_TO_DOWN="9";  //报酬型广告费用率从高到低
	
	public static final String SEARCH_METHOD_LIST="list";
	public static final String SEARCH_METHOD_DETAIL="detail";
	
	// 分页相关的
	public static final String PART_PAGE_PAGESEARCH="pagesearch";	public static final String PART_PAGE_KEY = "page";
	public static final String PART_PAGE_LENGTH_KEY = "length";
	public static final String PART_PAGE_OFFSET_KEY = "offset";
	public static final int PART_PAGE_PER_COUNT = 5;
	public static final int PART_PAGE_PER_COUNT_10 = 10;
	public static final int PART_PAGE_PER_COUNT_15 = 15;
	public static final int PART_PAGE_PER_COUNT_20 = 20;
	
	//常用的一些变量
	public static final String VARIABLE_KEYWORDS="keywords";
	public static final String VARIABLE_SORT="sort";
	public static final String VARIABLE_ISAUCTION="isAuction";
	public static final String VARIABLE_CATEGORY="category";
	public static final String VARIABLE_MAX_PRICE="maxPrice";
	public static final String VARIABLE_MIN_PRICE="minPrice";
	
	
	//isAuction
	public static final String ISAUCTION_DEFAULT ="0";
	public static final String ISAUCTION_TURE="0";
	public static final String ISAUCTION_FALSE="1";
	
	//用到的一些正则
	public static final String REGEX_NUMBER="\\d+";
	public static final String REGEX_CHARS="\\w+";
	public static final String REGEX_XIE="/";
	public static final String REGEX_BO="~";
	public static final String REGEX_ITEM_NAME="[0-9|a-z|A-Z]+[.|\\s]*[0-9|a-z|A-Z]+";//匹配商品名称
	public static final String REGEX_ITEM_MODEL="(\\w+([-]?|[/]?)\\s?)+";
	
	//编码类
	public static final String ENCODING_UTF8="UTF-8";
	
	//判断是否是result  header的搜索
	public static final String RESULT="result";
	
	//默认的类型
	public static final String DEFAULT_CATEGORY="すべてのカテゴリから";
	public static final String DEFAULT_CATEGORY_1="上記全て";
	
    //用于静态化的标志位参数
	public static final String FLAG_PATERMTER="flag";
	public static final String FLAG_DEFAULT="0";
	public static final String FLAG_1="1";

}
